From: Marc-Antoine Perennou Date: Sat, 12 Nov 2011 23:37:47 +0000 (+0100) Subject: GDBus: restore non-fatality of name acquisition error X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~7298 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=fc8d13f4bd9c3c4116e99d471d90047c23c18cc6;p=gnome-shell.git GDBus: restore non-fatality of name acquisition error commit 5350302b09ddbbfa98091a943ae878c9aaf9eb6e dropped the possibility to make a dbus name acquisition failure non-fatal. Btw, it has also overriden the name in the error message. Signed-off-by: Marc-Antoine Perennou Signed-off-by: Colin Walters https://bugzilla.gnome.org/show_bug.cgi?id=663941 --- diff --git a/src/main.c b/src/main.c index 81cdce94a..42d144679 100644 --- a/src/main.c +++ b/src/main.c @@ -58,7 +58,9 @@ shell_dbus_acquire_name (GDBusProxy *bus, NULL, /* cancellable */ &error))) { - g_printerr ("failed to acquire org.gnome.Shell: %s\n", error->message); + g_printerr ("failed to acquire %s: %s\n", name, error->message); + if (!fatal) + return; exit (1); } g_variant_get (request_name_variant, "(u)", request_name_result);